﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace SystemDiagramNew.TypeDefinition
{
	public class DetailLineFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			if (!(elem is DetailLine))
			{
				return false;
			}
			bool flag = false;
			ElementId elementId;
			IEnumerable<ElementId> enumerable;
			return elem.GetModelInfo(out flag, out elementId, out enumerable) && flag;
		}

		public bool AllowReference(Reference reference, XYZ pos)
		{
			return false;
		}
	}
}
